<#include "header.htm"/>

<div id="tabs">
			<ul>
				<li><a href="${JForumContext.encodeURL("/admBase/login")}"><span>${I18n.getMessage("Admin.general")}</span></a></li>
	
			
				<li><a href="${contextPath}/adminGroups/list${extension}"><span>${I18n.getMessage("Admin.groups")}</span></a></li>
				<li id="activetab"><a href="${contextPath}/adminUsers/list${extension}"><span>${I18n.getMessage("Admin.users")}</span></a></li>
				<li><a href="${contextPath}/adminCategories/list${extension}"><span>${I18n.getMessage("Admin.categories")}</span></a></li>				
				<li><a href="${contextPath}/adminForums/list${extension}"><span>${I18n.getMessage("Admin.forums")}</span></a></li>
				<li><a href="${contextPath}/adminModeration/list${extension}"><span>${I18n.getMessage("Admin.approving")}</span></a></li>
			
				<li><a href="${contextPath}/adminRankings/list${extension}"><span>${I18n.getMessage("Admin.rankings")}</span></a></li>				
				<li><a href="${contextPath}/adminBanning/list${extension}"><span>${I18n.getMessage("Admin.banning")}</span></a></li>
				
				
				
				
				<li><a href="${contextPath}/adminConfig/list${extension}"><span>${I18n.getMessage("Admin.configurations")}</span></a></li>
			
				<li><a href="${contextPath}/adminSmilies/list${extension}"><span>${I18n.getMessage("Admin.smilies")}</span></a></li>
			
				<li><a href="${contextPath}/adminSearchStats/list${extension}"><span>${I18n.getMessage("Admin.search")}</span></a></li>
			
				<li><a href="${contextPath}/adminAttachments/configurations${extension}"><span>${I18n.getMessage("Admin.attachments")}</span></a></li>
			
				<li><a href="${contextPath}/adminCache/list${extension}"><span>${I18n.getMessage("Admin.cache")}</span></a></li>
			
			</ul>
</div>




<div id="acp">
		<div class="panel">
			<span class="corners-top"><span></span></span>
				<div id="content">
				    <div id="main">




<#setting number_format = "#"/>
<#assign admin = admin?default(false)/>

<script type="text/javascript">
<!--
function validateForm()
{
	var f = document.post;

	if (f.new_password.value != f.password_confirm.value) {
		alert("${I18n.getMessage("User.passwordNotMatch")}");
		return false;
	}

	return true;
}

<#include "../js/utils.js"/>

-->
</script>

<form action="${JForumContext.encodeURL("/jforum")}" method="post" enctype="multipart/form-data" name="post" id="post" accept-charset="${encoding}" onsubmit="return validateForm();">
<input type="hidden" name="action" value="${action}" />
<input type="hidden" name="module" value="${moduleName}" />
<input type="hidden" name="user_id" value="${u.id}" />


<h1>${I18n.getMessage("ForumBase.profile")} :: ${u.username?html}</h1>



<fieldset>
	 <legend>${I18n.getMessage("User.accountSettings")}</legend>
	 <p>${I18n.getMessage("User.txtAccount")}</p>
				<#assign message = ""/>
				<#if editDone?default(false)>
					<#assign message = I18n.getMessage("User.editDone")/>
				<#elseif warns?exists>
					<#list warns as w>
						<#assign message = message + w + "<br />"/>
					</#list>
				</#if>

				<#if (message?length > 0)>
	                <p class="<#if warns?exists>error<#else>success</#if>">${message}</p>
				</#if>
	
	
	<dl>
		<dt><label>${I18n.getMessage("User.username")}:</label></dt>
		<dd><strong>				
		        			<#if admin?default(false)>
								<input class="post" type="text" name="username" value="${u.username?html}" />
							<#else>
								${u.username?html}
							</#if>
		</strong></dd>
	</dl>
	<dl>
		<dt><label for="email">${I18n.getMessage("User.emailAddress")}: *</label></dt>
		<dd><input type="text" style="WIDTH: 200px" name="email" maxlength="255" size="25" id="email" maxlength="100" value="${u.email?default("")?html}" class="inputbox" title="E-mail address"></dd>
	</dl>
	
	<#if !admin?default(false)>
		<dl>
			<dt><label for="current_password">${I18n.getMessage("User.currentPassword")}: *</label><br><span>${I18n.getMessage("User.needConfirmPassword")}</span></dt>
			<dd><input type="password" name="current_password" id="current_password" style="WIDTH: 200px" size="25" maxlength="100" class="inputbox" title="Current password"></dd>
		</dl>

	</#if>
	
	
	
		<dl>
			<dt><label for="new_password">${I18n.getMessage("User.newPassword")}: *</label><br><span>${I18n.getMessage("User.newPasswordIsOptional")}</span></dt>
			<dd><input type="password" name="new_password" id="new_password"  style="WIDTH: 200px" maxlength="100" class="inputbox" title="Change password"></dd>
		</dl>
		
		<dl>
			<dt><label for="password_confirm">${I18n.getMessage("User.confirmPassword")}: *</label><br><span>${I18n.getMessage("User.newPasswordIsOptional")}</span></dt>
			<dd><input type="password" name="password_confirm" id="password_confirm" maxlength="100" size="25" style="WIDTH: 200px" class="inputbox" title="Confirm password"></dd>
		</dl>
	
	</fieldset>









	<fieldset>
	    <legend>${I18n.getMessage("User.profile")}</legend>
	    <p>${I18n.getMessage("User.infoWillBePublicVisible")}</p>
	


	<dl>
		<dt><label for="icq">${I18n.getMessage("User.icq")}:</label></dt>
		<dd><input type="text" name="icq" id="icq" style="WIDTH: 300px" maxlength="15" size="10" value="${u.icq?default("")?html}" class="inputbox"></dd>
	</dl>

	<dl>
		<dt><label for="aim">${I18n.getMessage("User.aim")}:</label></dt>
		<dd><input type="text" name="aim" id="aim" style="WIDTH: 300px" maxlength="255" name="aim" value="${u.aim?default("")?html}" class="inputbox"></dd>
	</dl>

	<dl>
		<dt><label for="msn">${I18n.getMessage("User.msn")}:</label></dt>
		<dd><input type="text" name="msn" id="msn" style="WIDTH: 300px" maxlength="255" value="${u.msnm?default("")?html}" class="inputbox"></dd>
	</dl>

	<dl>
		<dt><label for="yim">${I18n.getMessage("User.yahoo")}:</label></dt>
		<dd><input type="text" name="yim" id="yim" style="WIDTH: 300px" maxlength="255" value="${u.yim?default("")?html}" class="inputbox"></dd>
	</dl>

	<dl>
		<dt><label for="website">${I18n.getMessage("User.www")}:</label></dt>
		<dd><input type="text" name="website" id="website" style="WIDTH: 300px" maxlength="255" size="25" value="${u.webSite?default("")?html}" class="inputbox"></dd>
	</dl>

	<dl>
		<dt><label for="location">${I18n.getMessage("User.from")}:</label></dt>
		<dd><input type="text" name="location" id="location"  style="WIDTH: 300px" maxlength="100" size="25" value="${u.from?default("")?html}" class="inputbox"></dd>
	</dl>
	
	<dl>
		<dt><label for="occupation">${I18n.getMessage("User.job")}:</label></dt>
		<dd><input type="text" class="inputbox" style="WIDTH: 300px" maxlength="100" size="25" name="occupation"  value="${u.occupation?default("")?html}" /></dd>
	</dl>
	
	<dl>
		<dt><label for="interests">${I18n.getMessage("User.interests")}:</label></dt>
		<dd><input type="text" class="inputbox" style="WIDTH: 300px" maxlength="150" size="35" name="interests" value="${u.interests?default("")?html}" /></dd>
	</dl>
	
	<dl>
		<dt><label for="biography">${I18n.getMessage("User.biography")}:</label></dt>
		<dd><textarea class="inputbox" style="WIDTH: 300px" name="biography" rows="8" cols="30">${u.biography?default("")}</textarea></dd>
	</dl>
	
	<dl>
		<dt><label for="current_password">${I18n.getMessage("User.signature")}:</label><br><span>${I18n.getMessage("User.signatureDef")}</span></dt>
		<dd><textarea class="inputbox" style="WIDTH: 300px" name="signature" rows="6" cols="30">${u.signature?default("")}</textarea></dd>
	</dl>
	
	</fieldset>






<fieldset>
    <legend>${I18n.getMessage("User.preferences")}</legend>


	<dl>
		<dt><label for="viewemail0">${I18n.getMessage("User.showEmail")}:</label></dt>
		<dd>
			<label for="viewemail1"><input type="radio" name="viewemail" id="viewemail1" value="1" <#if u.isViewEmailEnabled()>checked="checked"</#if>> ${I18n.getMessage("User.yes")}</label> 
			<label for="viewemail0"><input type="radio" name="viewemail" id="viewemail0" value="0" <#if u.isViewEmailEnabled() == false>checked="checked"</#if>> ${I18n.getMessage("User.no")}</label>
		</dd>
	</dl>
		
	<dl>
		<dt><label for="hideonline0">${I18n.getMessage("User.hideOnlineStatus")}:</label></dt>
		<dd>
			<label for="hideonline1"><input type="radio" name="hideonline" id="hideonline1" value="1" <#if u.isViewOnlineEnabled() == false>checked="checked"</#if>> ${I18n.getMessage("User.yes")}</label> 
			<label for="hideonline0"><input type="radio" name="hideonline" id="hideonline0" value="0" <#if u.isViewOnlineEnabled()>checked="checked"</#if>> ${I18n.getMessage("User.no")}</label>
		</dd>
	</dl>
	
	<dl>
		<dt><label for="notifyreply1">${I18n.getMessage("User.sendPostReplyNotify")}:</label><br><span>${I18n.getMessage("User.sendPostReplyNotifyDescription")}</span></dt>
		<dd>
			<label for="notifyreply1"><input type="radio" name="notifyreply" id="notifyreply1" value="1" <#if u.isNotifyOnMessagesEnabled()>checked="checked"</#if>> ${I18n.getMessage("User.yes")}</label> 
			<label for="notifyreply0"><input type="radio" name="notifyreply" id="notifyreply0" value="0" <#if u.isNotifyOnMessagesEnabled() == false>checked="checked"</#if>> ${I18n.getMessage("User.no")}</label>
		</dd>
	</dl>
	

		<dl>
			<dt><label for="notify_always0">${I18n.getMessage("User.notifyAlways")}:</label><br><span>${I18n.getMessage("User.notifyAlwaysDescription")}</span></dt>
			<dd>
				<label for="notify_always1"><input type="radio" name="notify_always" id="notify_always1" value="1" <#if u.notifyAlways()>checked="checked"</#if>> ${I18n.getMessage("User.yes")}</label> 
				<label for="notify_always0"><input type="radio" name="notify_always" id="notify_always0" value="0" <#if u.notifyAlways() == false>checked="checked"</#if>> ${I18n.getMessage("User.no")}</label>
			</dd>
		</dl>
		
		
		

	<dl>
		<dt><label for="notify_text1">${I18n.getMessage("User.notifyText")}:</label></dt>
		<dd>
			<label for="notify_text1"><input type="radio" name="notify_text" id="notify_text1" value="1" <#if u.notifyText()>checked="checked"</#if>> ${I18n.getMessage("User.yes")}</label> 
			<label for="notify_text0"><input type="radio" name="notify_text" id="notify_text0" value="0" <#if u.notifyText() == false>checked="checked"</#if>> ${I18n.getMessage("User.no")}</label>
		</dd>
	</dl>



	<dl>
		<dt><label for="notifypm1">${I18n.getMessage("User.privateMessagesNotify")}:</label></dt>
		<dd>
			<label for="notifypm1"><input type="radio" name="notifypm" id="notifypm1" value="1" <#if u.isNotifyPrivateMessagesEnabled()>checked="checked"</#if>> ${I18n.getMessage("User.yes")}</label> 
			<label for="notifypm0"><input type="radio" name="notifypm" id="notifypm0" value="0" <#if u.isNotifyPrivateMessagesEnabled() == false>checked="checked"</#if>> ${I18n.getMessage("User.no")}</label>
		</dd>
	</dl>	


				
	<dl>
		<dt><label for="attachsig1">${I18n.getMessage("User.alwaysAttachSignature")}:</label></dt>
		<dd>
			<label for="attachsig1"><input type="radio" name="attachsig" id="attachsig1" value="1" <#if u.attachSignatureEnabled>checked="checked"</#if>> ${I18n.getMessage("User.yes")}</label> 
			<label for="attachsig0"><input type="radio" name="attachsig" id="attachsig0" value="0" <#if u.attachSignatureEnabled == false>checked="checked"</#if>> ${I18n.getMessage("User.no")}</label>
		</dd>
	</dl>
	
	<dl>
		<dt><label for="allowhtml1">${I18n.getMessage("User.allowHtml")}:</label></dt>
		<dd>
			<label for="allowhtml1"><input type="radio" name="allowhtml" id="allowhtml1" value="1" <#if u.isHtmlEnabled()>checked="checked"</#if>> ${I18n.getMessage("User.yes")}</label> 
			<label for="allowhtml0"><input type="radio" name="allowhtml" id="allowhtml0" value="0" <#if u.isHtmlEnabled() == false>checked="checked"</#if>> ${I18n.getMessage("User.no")}</label>
		</dd>
	</dl>	


	<dl>
		<dt><label for="allowbbcode1">${I18n.getMessage("User.allowBbCode")}:</label></dt>
		<dd>
			<label for="allowbbcode1"><input type="radio" name="allowbbcode" id="allowbbcode1" value="1" <#if u.isBbCodeEnabled()>checked="checked"</#if>> ${I18n.getMessage("User.yes")}</label> 
			<label for="allowbbcode0"><input type="radio" name="allowbbcode" id="allowbbcode0" value="0" <#if !u.isBbCodeEnabled()>checked="checked"</#if>> ${I18n.getMessage("User.no")}</label>
		</dd>
	</dl>

	<dl>
		<dt><label for="allowsmilies1">${I18n.getMessage("User.allowSmilies")}:</label></dt>
		<dd>
			<label for="allowsmilies1"><input type="radio" name="allowsmilies" id="allowsmilies1" value="1" <#if u.isSmiliesEnabled()>checked="checked"</#if>> ${I18n.getMessage("User.yes")}</label> 
			<label for="allowsmilies0"><input type="radio" name="allowsmilies" id="allowsmilies0" value="0" <#if !u.isSmiliesEnabled()>checked="checked"</#if>> ${I18n.getMessage("User.no")}</label>
		</dd>
	</dl>

	<dl>
		<dt><label for="language">${I18n.getMessage("User.langPreference")}:</label></dt>
		<dd><select name="language" id="language">
							<option value="" <#if u.lang?default("") == "">selected="selected"</#if>>${I18n.getMessage("User.Lang.default")}</option>
							<option value="en_US" <#if u.lang?default("") == "en_US">selected="selected"</#if>>${I18n.getMessage("User.Lang.en_US")}</option>
							<option value="zh_TW" <#if u.lang?default("") == "zh_TW">selected="selected"</#if>>${I18n.getMessage("User.Lang.zh_TW")}</option>
							<option value="zh_CN" <#if u.lang?default("") == "zh_CN">selected="selected"</#if>>${I18n.getMessage("User.Lang.zh_CN")}</option>							
							<option value="fr_FR" <#if u.lang?default("") == "fr_FR">selected="selected"</#if>>${I18n.getMessage("User.Lang.fr_FR")}</option>
							<option value="de_DE" <#if u.lang?default("") == "de_DE">selected="selected"</#if>>${I18n.getMessage("User.Lang.de_DE")}</option>
							<option value="nl_NL" <#if u.lang?default("") == "nl_NL">selected="selected"</#if>>${I18n.getMessage("User.Lang.nl_NL")}</option>
							<option value="pt_PT" <#if u.lang?default("") == "pt_PT">selected="selected"</#if>>${I18n.getMessage("User.Lang.pt_PT")}</option>
							<option value="pt_BR" <#if u.lang?default("") == "pt_BR">selected="selected"</#if>>${I18n.getMessage("User.Lang.pt_BR")}</option>
							<option value="ru_RU" <#if u.lang?default("") == "ru_RU">selected="selected"</#if>>${I18n.getMessage("User.Lang.ru_RU")}</option>
							<option value="fi_FI" <#if u.lang?default("") == "fi_FI">selected="selected"</#if>>${I18n.getMessage("User.Lang.fi_FI")}</option>
							<option value="vi_VN" <#if u.lang?default("") == "vi_VN">selected="selected"</#if>>${I18n.getMessage("User.Lang.vi_VN")}</option>
							<option value="es_ES" <#if u.lang?default("") == "es_ES">selected="selected"</#if>>${I18n.getMessage("User.Lang.es_ES")}</option>
							<option value="pl_PL" <#if u.lang?default("") == "pl_PL">selected="selected"</#if>>${I18n.getMessage("User.Lang.pl_PL")}</option>
							<option value="nb_NO" <#if u.lang?default("") == "nb_NO">selected="selected"</#if>>${I18n.getMessage("User.Lang.nb_NO")}</option>
							<option value="it_IT" <#if u.lang?default("") == "it_IT">selected="selected"</#if>>${I18n.getMessage("User.Lang.it_IT")}</option>
							<option value="hu_HU" <#if u.lang?default("") == "hu_HU">selected="selected"</#if>>${I18n.getMessage("User.Lang.hu_HU")}</option>
		
		</select></dd>
	</dl>
	
	
	
<#if admin>
				
	<dl>
		<dt><label for="rank_special">${I18n.getMessage("User.specialRanking")}:</label></dt>
		<dd>
							<select name="rank_special">
								<option value="-1">${I18n.getMessage("User.noSpecialRanking")}</option>

								<#list specialRanks as rank>
									<option value="${rank.id}" <#if rank.id == u.rankId>selected</#if>>${rank.title}</option>
								</#list>
							</select>
		</dd>
	</dl>
</#if>
	
	</fieldset>


<fieldset>
	 <legend>${I18n.getMessage("User.avatar")}</legend>


	<dl>
		<dt><label>${I18n.getMessage("User.currentAvatar")}:</label><br><span>${I18n.getMessage("User.avatarDesc")}</span></dt>
		<dd>
									<#if (u.avatar?exists && u.avatar?length > 0)>
										<#if u.isExternalAvatar()>
											<img src="${u.avatar?html}" alt="[Avatar]" />
										<#else>
											<img src="${contextPath}/images/avatar/${u.avatar}" alt="[Avatar]" /><br />
										</#if>

		</dd>
										<script type="text/javascript">
										<!--
										var avatarBkp = "";
										
										function clearAvatar(f)
										{
											if (f.avatardel.checked) {
												avatarBkp = f.avatarUrl.value;
												f.avatarUrl.value = '';
											}
											else {
												f.avatarUrl.value = avatarBkp;
											}
										}
										-->
										</script>
		<dd><label for="avatardel"><input type="checkbox" name="avatardel" id="avatardel" onclick="clearAvatar(this.form)" style="cursor: pointer;"> ${I18n.getMessage("User.removeAvatar")}</label></dd>
									<#else>
									        <img src="${contextPath}/templates/${templateName}/img/no_avatar.gif" >
									</#if>
	</dl>

	


		<dl>
			<dt><label for="avatar">${I18n.getMessage("User.avatarFromPc")}:</label></dt>
			<dd><input style="WIDTH: 200px;" type="file" name="avatar" class="inputbox autowidth"></dd>
		</dl>



<#if admin || avatarAllowExternalUrl>

	<dl>
		<dt><label for="avatarUrl">${I18n.getMessage("User.avatarExternal")}:</label></dt>
		<dd><input type="text" name="avatarUrl" id="avatarUrl" style="WIDTH: 200px" maxlength="255" value="<#if u.isExternalAvatar()>${u.avatar?default("")?html}</#if>" class="inputbox"></dd>
	</dl>
</#if>
				

	
</fieldset>



<fieldset class="submit-buttons">
	<input type="reset" value="${I18n.getMessage("User.reset")}" name="reset" class="button2">&nbsp;
	<input type="submit" name="submit" value="${I18n.getMessage("User.submit")}" class="button1">

</fieldset>

</div>


</form>

</div>
</div>
	<span class="corners-bottom"><span></span></span>
</div>
</div>

<#include "bottom.htm"/>